<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>会员中心</title>
	<link rel="stylesheet" href="css/xingchao.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/layer/layer.js"></script>
    <script type="text/javascript" src="js/jquery.md5.js"></script>
   
</head>
<body style="background: #EFEFEF; ">

<!--  
	头部
-->
<div  id="usercenter" style="display:none">
<div class="head">
	<div class="w" style="height:50px;">
		<a href="index.html">
			<img src="images/logo.png" alt="" width="150px;">
		</a>
		<ul class="nav r">
	       <li class="cur">
	            <a href="index.html">众源</a>
	            <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="ziyuan.html">资源搜索</a>
	            <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="jiaocheng.html">使用教程</a>
	            <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="biaozhun.html">行业API</a>
	            <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="page.html">关于我们</a>
	            <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="user.html" id="user-box">会员中心</a>|
                 <a href="user.html?action=out">退出</a>
	        <sub class="sub1"></sub>
	        </li>
	        <li>
	            <a href="">中文</a>|
	            <a href="">English</a>
	            <sub class="sub1"></sub>
	        </li>
		</ul>
	</div>
</div>

<div class="main w">
<!--  
	当前位置
-->
	<div class="position">
		您当前位置：<a href="">首页</a> > <a href="">会员中心</a>
	</div>
<!--  
	会员信息
-->
	<div class="user">
		<div class="user_left l">
			<div class="left_t">会员中心</div>
			<ul class="left_c">
				<li><a href="agent.html">我的收藏</a></li>
               
                <li><a href="user.html" style="color: #5fadfc;">资料修改</a></li>
				 <li><a href="editpwd.html">修改密码</a></li>
                 <li><a href="key.html">Key管理</a></li>
                
			</ul>
		</div>
		<div class="user_right r">
			<div class="right_t">资料修改</div>
			<div class="right_c">

				<!-- 修改密码表单 -->
				<form action="" method="" onSubmit="return false;">
					<div style="height: 55px;line-height: 55px;">
						<span class="l" style="width: 110px;">用户名：</span>
						<input type="text" name="name" id="name" class="i1" placeholder="请填写您的用户名" style="width: 84.9%;margin-top: 0px;">
					</div>
					<div style="height: 55px;line-height: 55px;">
						<span class="l" style="width: 110px;">地址：</span>
						<input type="text" name="address" id="address" class="i1" placeholder="请输入您新的地址" style="width: 84.9%;margin-top: 0px;">
					</div>
	
					<input type="submit" name="submit" class="i2" id="updateInfo" value="立即修改">
				</form>


			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!--  
	底部
-->
<div class="copyright">
	Copyright @ 2016-2017 蚂蚁金融服务集团  沪ICP备16046581号-1 
 &nbsp;&nbsp;&nbsp;&nbsp;技术支持：星巢网络
</div>
</div>
</body>
</html>
<script type="text/javascript" src="js/App.min.js"></script>
<script>
$(function(){
  var url = "http://www.usources.cn/api/user/info";
  totalPages   = $("#pageNav").data('all');
  var loading = layer.msg('正在获取所有收藏，请等候...', {icon: 16,time: 999999, shade: [0.3, '#000']});

  $.ajax({
	  url:url+'?'+Math.random(),
	  type:'GET',
	   xhrFields: {
	   withCredentials: true
	  },
	  crossDomain:true,
	  data:{jsonpCallback:'userInfo'},
	  success:function(data){
		 layer.close(loading);
		 if(data.code==200){
			$('#name').val(data.data.info.name);
			$('#address').val(data.data.info.address);
		 }else{
			layer.msg('请先登录！',{icon:2});
			setTimeout(function(){ location.href ='login.html';},2000)
		 }
	},dataType:'json'}
	
 );

});
</script>